using MediatR;
using RBAC.Domain.ProcurementManagement;
using RBAC.ErrorCode;
namespace RBAC.Read.Api.Application.Command.ProcurementOrderInfo
{
    public class GetProcurementOrderCommands:IRequest<APIResult<APIPaging<ProcurementTable>>>
    {
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
        /// <summary>
        /// 模糊搜索关键字（匹配订单主题、采购单号、供应商名称）
        /// </summary>
        public string? Keyword { get; set; }
        /// <summary>
        /// 精确过滤：采购单号
        /// </summary>
        public string? ProcurementCode { get; set; }
        /// <summary>
        /// 精确过滤：供应商名称
        /// </summary>
        public string? VendorName { get; set; }
        /// <summary>
        /// 起始采购日期（含）
        /// </summary>
        public DateTime? StartDate { get; set; }
        /// <summary>
        /// 结束采购日期（含）
        /// </summary>
        public DateTime? EndDate { get; set; }
    }
}
